<?php echo form_open(BASE_URL . '/' . $this -> admin . '/create_award', array('id' => 'award_c_form', 'method' => 'post')); ?>
<div class="row1">
	<div class="error_msg" style="margin-left:15px;">
		<?php
		if (isset($error) && $error != '') {
			echo $error;
		}
		?>
	</div>
	<div class="success_msg" style="margin-left:15px;">
		<?php
		if ($this -> session -> userdata('award_success')) {
			echo $this -> session -> userdata('award_success');
			$this -> session -> unset_userdata('award_success');
		} 
		?>
	</div>
	<div class="form-group col-sm-12 col-md-12 col-lg-12" id="add_criteria">
		<div class="form-inline" id="main_criteria1">
			<input type="hidden" id="c_counter" value="1" />
			<div class="form-group col-sm-6 col-md-6 col-lg-6 custom_padding">
				<input type="text" name="criteria_label1" class="form-control white input_box" id="criteria_label1" onfocusout="validateCriteria($(this).val(), '1')" placeholder="Criteria Label" value="">
			</div>
			<div class="form-group col-sm-4 col-md-4 col-lg-4 custom_padding">
				&nbsp;&nbsp;:&nbsp;
				<input type="text" name="criteria_value1" id="criteria_value1" onfocusout="validateCriteriaVal($(this).val(), '1')" class="form-control white" placeholder="00.00" value="">
			</div>
			<div class="form-group col-sm-2 col-md-2 col-lg-2 custom_padding">
				<div class="add_more" style="float:left;">
					<img src="<?php echo ASSET_URL; ?>img/add_more.png" alt="Add more" title="Add Criteria" id="addinputs">
				</div>
				<div style="float:left;margin:6px 0 0 20px;cursor:pointer;font-size:16px;text-decoration:none;"><span class="glyphicon glyphicon-plus" aria-hidden="true" title="Add Sub Criteria" alt="Add Sub Criteria" onClick="addSubInput($(this).parent().parent().parent().attr('id'))" id="addsubinputs"></span></div>
			</div>
			<div class="space10"></div>
		</div>
		<div class="clearfix"></div>
		<div class="error error_msg" id="error_div_1"></div>
	</div>
	<div class="clearfix"></div>
	<div class="form-group col-sm-12">
		<label for="Scoring2">Scoring Guideline</label>
		<textarea class="form-control white" id="scoring2" name="scoring2"><?php if(isset($criteria_data)){foreach($criteria_data as $temp){if(isset($temp['award_criteria_name']) && $temp['award_criteria_name'] == 'Scoring Guideline'){echo $temp['award_criteria_value'];}}}else echo set_value('scoring2'); ?></textarea>
		<script type="text/javascript" src="<?php echo ASSET_URL; ?>ckeditor/ckeditor.js?t=B5GJ5GG"></script>
			<script type="text/javascript">
				//<![CDATA[
				CKEDITOR.replace('scoring2', {
					"toolbar" : "Standard"
				});
				//]]>
			</script>
		<div class="error" id="err-name4">
		</div>
	</div>
	<input type="hidden" name="select_award_id" value="<?php if($this->session->userdata('award_id'))echo $this->session->userdata('award_id'); ?>" />
	<input type="hidden" name="create_type" value="criteria" />
	<div class="clearfix space10"></div>
</div>
<input type="hidden" id="img_url" value="<?php echo ASSET_URL; ?>" />
<button type="button" class="btn btn-primary" id="award_c_btn">
	Save & Continue
</button>
<?php echo form_close();?>